<?php
namespace Modules\Core\Services;

use Illuminate\Support\ServiceProvider;
use Illuminate\Http\Request;
use ThrowException;
use Setting;

use  Modules\Card\Entities\Card;

use Modules\Asset\Entities\AllAsset;
use Modules\Asset\Entities\SingleAsset;

// 在线资产处理
class AssetService
{
    public function initMultiAsset($assets)
    {
        return new AllAsset($assets);
    }

    public function initSingleAsset($assets)
    {
        return new SingleAsset($assets);
    }

    public function sendTo($assetArray, $user, $options) 
    {
        return $this->initMultiAsset($assetArray)->sendTo($user, $options);
    }

    // 发送单体奖励
    public function sendSingleReward($singleReward, $user, $options)
    {
        return $this->initSingleAsset($singleReward)->sendTo($user, $options);
    }

    // 创建标准资产
    public function createAssetArray($array)
    {
    }
}
